﻿using System;
using System.Collections.Generic;
using System.Text;

namespace T.FAS.Runtime.Metadata.Entity
{
    public class MetaDataExceptionCode
    {
        private static readonly string ExceptionCodePrefix = "FAS-Metadata-";

        public static readonly string InvalidParameter = string.Format("{0}{1}", ExceptionCodePrefix, "10001");
        public static readonly string InvalidParameterMessage = "元数据管理服务: 参数为空";

        public static readonly string SaveMetaDataException = string.Format("{0}{1}", ExceptionCodePrefix, "10002");

        public static readonly string SaveMetaDataExceptionMessage = "保存元数据异常, 元数据ID:{0}";
        public static readonly string SaveMetaDataExceptionMessage2 = "保存元数据异常, 元数据类型:{0}, 元数据ID:{1}, 元数据标识:{2}";

        public static readonly string GetMetaDataException = string.Format("{0}{1}", ExceptionCodePrefix, "10003");

        public static readonly string GetMetaDataExceptionMessage = "查询元数据异常, 元数据ID:{0}";
        public static readonly string GetMetaDataExceptionMessage2 = "查询元数据异常, 元数据Code:{0}, 元数据类型:{1}";
        public static readonly string GetMetaDataExceptionMessage3 = "查询元数据异常, 元数据已删除, 元数据类型:{0}, 元数据ID:{1}, 元数据标识:{2}";

        public static readonly string UpdateMetaDataException = string.Format("{0}{1}", ExceptionCodePrefix, "10003");

        public static readonly string UpdateMetaDataExceptionMessage = "更新元数据异常, 元数据类型:{0}, 元数据ID:{1}";

        public static readonly string DeleteMetaDataException = string.Format("{0}{1}", ExceptionCodePrefix, "10004");

        public static readonly string DeleteMetaDataExceptionMessage = "删除元数据异常, 元数据ID:{0}";

        public static readonly string CheckinMetaDataException = string.Format("{0}{1}", ExceptionCodePrefix, "10005");

        public static readonly string CheckinMetaDataExceptionMessage = "签入元数据异常, 元数据ID:{0}";

        public static readonly string CheckoutMetaDataException = string.Format("{0}{1}", ExceptionCodePrefix, "10006");

        public static readonly string CheckoutMetaDataExceptionMessage = "签出元数据异常, 元数据ID:{0}";

        public static readonly string MetaDataImportException = string.Format("{0}{1}", ExceptionCodePrefix, "10007");
        public static readonly string MetaDataImportExceptionMessage = "元数据导入异常, 元数据列表:{0}";

        public static readonly string MetaDataExportException = string.Format("{0}{1}", ExceptionCodePrefix, "10008");
        public static readonly string MetaDataExportExceptionMessage = "元数据导出异常, 元数据列表:{0}";

        public static readonly string GetMetaDataInfoException = string.Format("{0}{1}", ExceptionCodePrefix, "10009");
        public static readonly string GetMetaDataInfoExceptionMessage = "获取元数据类型信息异常, 元数据类型信息:{0}";

        public static readonly string SaveMetaDataInfoException = string.Format("{0}{1}", ExceptionCodePrefix, "10010");
        public static readonly string SaveMetaDataInfoExceptionMessage = "保存元数据类型信息异常, 元数据类型信息:{0}";

        public static readonly string DeleteMetaDataInfoException = string.Format("{0}{1}", ExceptionCodePrefix, "10011");
        public static readonly string DeleteMetaDataInfoExceptionMessage = "删除元数据类型信息异常, 元数据类型信息:{0}";

        public static readonly string GetAllMetaDataInfoException = string.Format("{0}{1}", ExceptionCodePrefix, "10012");
        public static readonly string GetAllMetaDataInfoExceptionMessage = "获取所有元数据类型信息异常";

        public static readonly string UpdateMetaDataInfoException = string.Format("{0}{1}", ExceptionCodePrefix, "10013");
        public static readonly string UpdateMetaDataInfoExceptionMessage = "更新元数据类型信息异常, 元数据类型信息:{0}";

        public static readonly string GetMetaDataMgrException = string.Format("{0}{1}", ExceptionCodePrefix, "10014");
        public static readonly string GetMetaDataMgrExceptionMessage = "获取元数据管理器异常, 元数据类型:{0}";

        public static readonly string ReflectMetaDataMgrException = string.Format("{0}{1}", ExceptionCodePrefix, "10015");
        public static readonly string ReflectMetaDataMgrExceptionMessage = "反射构造元数据管理器异常, 元数据类型:{0}";

        public static readonly string ValidateMetaDataException = string.Format("{0}{1}", ExceptionCodePrefix, "10016");
        public static readonly string ValidateMetaDataExceptionMessage = "元数据合法性校验异常, 元数据ID:{0}";

        public static readonly string CheckUniqueMetaDataException = string.Format("{0}{1}", ExceptionCodePrefix, "10017");
        public static readonly string CheckUniqueMetaDataExceptionMessage = "元数据唯一性校验异常, 元数据ID:{0}";

        public static readonly string GetMetaDataExtManagerException = string.Format("{0}{1}", ExceptionCodePrefix, "10018");
        public static readonly string GetMetaDataExtManagerExceptionMessage = "获取元数据扩展管理器异常, 元数据类型信息:{0}";

        public static string RepairMetadataException = string.Format("{0}{1}", ExceptionCodePrefix, "10019");
        public static readonly string RepairMetadataExceptionMessage = "修复元数据异常, 未获取到修复方法, 元数据信息:{0}:{1}";

        public static readonly string PersistenceMetaDataMgrException = string.Format("{0}{1}", ExceptionCodePrefix, "10020");
        public static readonly string PersistencetMetaDataMgrExceptionMessage = "元数据持久化异常, 元数据类型:{0}";
    }
}
